﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Web;

namespace ProxyAppWeb
{
    [ServiceContract]
    public interface IS2SProxy
    {
        [OperationContract]
        [WebGet(UriTemplate = "ExecuteGet?getURL={getURL}", ResponseFormat = WebMessageFormat.Json)]
        string ExecuteGet(string getURL);

        [OperationContract]
        [WebInvoke(Method="POST", BodyStyle=WebMessageBodyStyle.Wrapped,RequestFormat=WebMessageFormat.Json,ResponseFormat = WebMessageFormat.Json, UriTemplate="ExecutePost")]
        string ExecutePost(string postURL, string postBody);
    }
}